﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ERP.WH.Models.Entity;

[Table("wh_inventory_movement")]
public partial class WhInventoryMovement
{
    [Key]
    public long MovementId { get; set; }

    public string MovementNo { get; set; } = null!;

    /// <summary>
    /// 1-库内转移, 2-调拨转移, 3-盘点调整
    /// </summary>
    public sbyte MovementType { get; set; }

    public long? FromWarehouseId { get; set; }

    public long? FromLocationId { get; set; }

    public long? ToWarehouseId { get; set; }

    public long? ToLocationId { get; set; }

    public decimal? TotalQuantity { get; set; }

    /// <summary>
    /// 0-草稿, 1-进行中, 2-已完成, 3-已取消
    /// </summary>
    public sbyte? Status { get; set; }

    public string? Remark { get; set; }

    public long CreatedBy { get; set; }

    public DateTime? CreatedAt { get; set; }

    public long? CompletedBy { get; set; }

    public DateTime? CompletedAt { get; set; }

    public sbyte? IsDelete { get; set; }
}
